﻿
namespace Dapper.SimpleDao.Factory
{
    /// <summary>
    /// SQL拼接后参数
    /// </summary>
    internal class SqlParameterMap
    {
        /// <summary>
        /// SQL数据
        /// </summary>
        public string Sql { get; set; }
        /// <summary>
        /// SQL参数
        /// </summary>
        public object Param { get; set; }
        /// <summary>
        /// SQL操作
        /// </summary>
        public SqlParameterOp Operation { get; set; }
    }

    /// <summary>
    /// SQL操作
    /// </summary>
    internal enum SqlParameterOp
    {
        Select = 1,
        Add,
        Update,
        Delete
    }
}
